package com.LearnInWorld.video.mapper;

import com.LearnInWorld.video.pojo.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface CategoryMapper extends Mapper<Category> {
    //根据模块id查询分类信息
    @Select("select name from tb_category  where module_id=#{moduleId}")
    public List<Category> findCategoryByModule(Integer moduleId);
}
